package com.autodesk.akn.emr.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.autodesk.akn.emr.dao.EMRDao;

/**
 * 
 * @author jeremias.lopez
 *
 */
@Service
public class EMRService {
	@Autowired
	EMRDao emrDao;

	public EMRService() {
	}

	public EMRDao getEmrDao() {
		return emrDao;
	}

	public void setEmrDao(EMRDao emrDao) {
		this.emrDao = emrDao;
	}
	
	public String processLogFiles(String file) {
		String jobId = emrDao.processLogs(file);
		return jobId;
	}
	
	public String jobStatus(String jobID) {
		return emrDao.getJobStatus(jobID);
	}
}
